#ifndef __DRV_1WIRE_H__
#define __DRV_1WIRE_H__
#include "board.h"

#include <gpio.h>
#include "gpio.h"

/* 将PE2 配置成浮空输入模式*/
#define ONEWIRE_IO_IN()  {GPIOE->MODER|=0x00;GPIOE->PUPDR|=0x00;}
/* 将PE2 配置成推完输出模式*/
#define ONEWIRE_IO_OUT() {GPIOE->MODER|=0x10;GPIOE->PUPDR|=0x00;}
										   
#define	ONEWIRE_DQ_OUT PEout(2) 
#define	ONEWIRE_DQ_IN  PEin(2)  


#endif /* end of include guard: __DRV_1WIRE_H__ */
